#pragma once
#include "Iprint.h"
#include "DataStruct.h"
#include "Log.h"
#include <fstream>

using namespace std;

class Logger
{
private:
	Logger(void);
	list<Log> logStore;
	priority_queue<Log* , vector<Log*> , OCCURCOMPARE> logQueue;
public:
	static Logger* getInstance() ;
	Log* pushLog( Log& log );
	void printAllLog();
	virtual ~Logger(void);
};
